package concurrent.queue;

import java.util.concurrent.ConcurrentLinkedQueue;

public class ConcurrentLinkedQueueDemo {

    public static void main(String[] args) {
        ConcurrentLinkedQueue<Long> queue = new ConcurrentLinkedQueue<>();

        queue.offer(1L);
        queue.offer(2L);
        queue.offer(3L);
        System.out.println( queue.poll());;

        System.out.println(queue.peek());
        System.out.println(queue.size());;
        queue.contains(1L);

        System.out.println(queue);
    }
}
